home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Tele / S / Servant 1.26e updater / cards.xml < prev    next >
Encoding:
Text File  |  1993-05-01  |  16.3 KB  |  159 lines

  1. card_2823.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>2823</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2751</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3145.css" />
  12.     <part>
  13.         <id>1</id>
  14.         <type>field</type>
  15.         <visible> <true /> </visible>
  16.         <dontWrap> <false /> </dontWrap>
  17.         <dontSearch> <false /> </dontSearch>
  18.         <sharedText> <false /> </sharedText>
  19.         <fixedLineHeight> <false /> </fixedLineHeight>
  20.         <autoTab> <false /> </autoTab>
  21.         <lockText> <true /> </lockText>
  22.         <rect>
  23.             <left>5</left>
  24.             <top>5</top>
  25.             <right>316</right>
  26.             <bottom>245</bottom>
  27.         </rect>
  28.         <style>scrolling</style>
  29.         <autoSelect> <false /> </autoSelect>
  30.         <showLines> <false /> </showLines>
  31.         <wideMargins> <false /> </wideMargins>
  32.         <multipleLines> <false /> </multipleLines>
  33.         <reservedFamily> 0 </reservedFamily>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>left</textAlign>
  37.         <font>Geneva</font>
  38.         <textSize>10</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <textHeight>13</textHeight>
  41.         <name>info</name>
  42.         <script></script>
  43.     </part>
  44.     <part>
  45.         <id>2</id>
  46.         <type>button</type>
  47.         <visible> <true /> </visible>
  48.         <reserved5> 0 </reserved5>
  49.         <reserved4> 0 </reserved4>
  50.         <reserved3> 0 </reserved3>
  51.         <reserved2> 0 </reserved2>
  52.         <reserved1> 0 </reserved1>
  53.         <enabled> <true /> </enabled>
  54.         <rect>
  55.             <left>85</left>
  56.             <top>248</top>
  57.             <right>197</right>
  58.             <bottom>270</bottom>
  59.         </rect>
  60.         <style>roundrect</style>
  61.         <showName> <true /> </showName>
  62.         <highlight> <false /> </highlight>
  63.         <autoHighlight> <true /> </autoHighlight>
  64.         <sharedHighlight> <true /> </sharedHighlight>
  65.         <family>0</family>
  66.         <titleWidth>0</titleWidth>
  67.         <icon>0</icon>
  68.         <textAlign>center</textAlign>
  69.         <font>Chicago</font>
  70.         <textSize>12</textSize>
  71.         <textStyle>plain</textStyle>
  72.         <name>Update Servant</name>
  73.         <script>on mouseUpglobal saveaScriptput empty into saveaScriptset lockmessages to trueput false into noWindput cd fld "patch1" into myNewHndlrput cd fld "patch2" into mynewHndlr2put the long name of this cd into whereIwasput "" into doneOKput the userLevel into savedUserLevelset userLevel to 5start using stack "Online Servant Stuff"if the result is not empty thenanswer "I can't find stack Online Servant Stuff, and I need it to make the update. Sorry."exit mouseUpend ifanswer "First, please open the ‚ÄúOnline Servant Stuff‚Äù stack of 1.26d if you have it,"¬¨& " or 1.26c if that's the latest version you have."answer file "Where is ‚ÄúOnline Servant Stuff‚Äù of 1.26c or d?" of type stackif the result is not empty or it is empty thenanswer "Update canceled because we didn't get to Stuff stack."exit mouseUpend ifgo stack itif the result is not empty then exit mouseUpif there is not a cd fld "Version" thenanswer "This is not an Online Servant Stuff stack"exit mouseUpend ifput cd fld "Version" into theVersif word 3 of theVers is "e" thenanswer "This stack has already been updated."exit mouseUpend ifif word 2 to 3 of theVers is not "1.26 c" and word 2 to 3 of theVers is not "1.26 d" thenanswer "This is not version 1.26c or d of the Stuff stack. This is version " & ¬¨word 2 to 3 of theVersexit mouseUPend if-- ready!go cd "settings"if the hilite of cd btn "Save text archives in:" thenif cd fld "folderPath" = "" thenanswer "You haven't specified a folder to save text archives in. Text archiving"¬¨& " will be turned off (see updater text)."set the hilite of cd btn "Save text archives in:" to falseend ifend ifgo to bg "Board Control"hide fld "Command 1"go cd 1put the script of this bg into myScriptput putHandler(myNewHndlr,myScript) into myScriptput whichline("on logOff2",myScript) into onLineif onLIne > 0 thenput whichLine("if myCode",myScript,onLine) into dumpLineif dumpLine > 0 thendelete line dumpLine to dumpLine + 1 of myScriptend ifend ifput whichline("on firstTimeUser",myScript) into onLineif onLine > 0 thenput whichLine("Tech 1",myScript,onLine) into dumpLineif dumpLine > 0 thenput mynewHndlr2 into line dumpLine + 1 to dumpLine + 2 of myScriptend ifend ifset the script of this bg to myScript--fix readonmoveput the script of this stack into myScriptput whichline("function readOnMove",myScript) into onLineif onLine > 0 thenput whichLine("return -1",myScript,onLine) into dumpLineif dumpLine > 0 thendelete line dumpLine + 1 to dumpLine + 2 of myScriptset the script of this stack to myScriptend ifend ifif doneOK = "" thengo cd 1put "e" into word 3 of theVersput theVers into cd fld "Version"answer "Update complete. Thank you for bearing with us."else answer "Unable to update. Error: " & doneOK & ".  Please patch a fresh copy of 1.26d."go whereIwasstop using stack "Online Servant Stuff"set the userLevel to savedUserLevelset lockmessages to falseend mouseUp</script>
  74.     </part>
  75.     <part>
  76.         <id>4</id>
  77.         <type>field</type>
  78.         <visible> <false /> </visible>
  79.         <dontWrap> <false /> </dontWrap>
  80.         <dontSearch> <false /> </dontSearch>
  81.         <sharedText> <false /> </sharedText>
  82.         <fixedLineHeight> <false /> </fixedLineHeight>
  83.         <autoTab> <false /> </autoTab>
  84.         <lockText> <false /> </lockText>
  85.         <rect>
  86.             <left>14</left>
  87.             <top>103</top>
  88.             <right>293</right>
  89.             <bottom>235</bottom>
  90.         </rect>
  91.         <style>scrolling</style>
  92.         <autoSelect> <false /> </autoSelect>
  93.         <showLines> <false /> </showLines>
  94.         <wideMargins> <false /> </wideMargins>
  95.         <multipleLines> <false /> </multipleLines>
  96.         <reservedFamily> 0 </reservedFamily>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>left</textAlign>
  100.         <font>Geneva</font>
  101.         <textSize>9</textSize>
  102.         <textStyle>plain</textStyle>
  103.         <textHeight>12</textHeight>
  104.         <name>patch1</name>
  105.         <script></script>
  106.     </part>
  107.     <part>
  108.         <id>5</id>
  109.         <type>field</type>
  110.         <visible> <false /> </visible>
  111.         <dontWrap> <false /> </dontWrap>
  112.         <dontSearch> <false /> </dontSearch>
  113.         <sharedText> <false /> </sharedText>
  114.         <fixedLineHeight> <false /> </fixedLineHeight>
  115.         <autoTab> <false /> </autoTab>
  116.         <lockText> <false /> </lockText>
  117.         <rect>
  118.             <left>12</left>
  119.             <top>28</top>
  120.             <right>286</right>
  121.             <bottom>119</bottom>
  122.         </rect>
  123.         <style>rectangle</style>
  124.         <autoSelect> <false /> </autoSelect>
  125.         <showLines> <false /> </showLines>
  126.         <wideMargins> <false /> </wideMargins>
  127.         <multipleLines> <false /> </multipleLines>
  128.         <reservedFamily> 0 </reservedFamily>
  129.         <titleWidth>0</titleWidth>
  130.         <icon>0</icon>
  131.         <textAlign>left</textAlign>
  132.         <font>Geneva</font>
  133.         <textSize>10</textSize>
  134.         <textStyle>plain</textStyle>
  135.         <textHeight>13</textHeight>
  136.         <name>patch2</name>
  137.         <script></script>
  138.     </part>
  139.     <content>
  140.         <layer>card</layer>
  141.         <id>1</id>
  142.         <text><span class="style3">his will update Servant </span><span class="style4">1.26d</span><span class="style3"> to be compatible with a change in GEnie protocol scheduled for 5/3/93. Just run this one time (by clicking the button below). Go ahead and do this now‚Äîthe updated version will still work under the old GEnie protocol prior to the change.If you have Servant </span><span class="style4">1.26c</span><span class="style3">, and are able to send mail with it, and have no plans to change break key settings, you can use this to update it, but you will not be protected from potential break key problems until the next upgrade of Servant (to be extra safe, run the "d" update (file 3574) before running this one.If you have </span><span class="style4">any older version</span><span class="style3">, or none at all, upload file #3573 and then run this updater on it.</span><span class="style4"> Changes in this update:</span><span class="style3">‚Ä¢ Flexible sign-on procedure to work under new GEnie protocol (as well as old).‚Ä¢ Auto-redial if busy feature added.‚Ä¢ Extra packet data coming from GEnie won't faze it.‚Ä¢ Hides "command 1" code field if it was visible‚Ä¢ Turns off archiving if no folder was selected (was on in 1.26d). To select a folder, click the blank just under the checkbox called "Save text archives in:" on the Main Settings card. Servant puts dozens of files in that folder, and it may take the Finder a long time just to open it. If archving was turned on with no folder selected, Servant would store all the archive files in the folder with your HyperCard application. (Archiving will be improved in the future.)‚Ä¢ Fixes bug in baud rate setting from New User Interview.</span><span class="style4">Tech info for those who have changed scripts: </span><span class="style3">This update completely replaces the "logon2" handler in the Stuff background 1 script. Any changes you have made to that handler will be lost (but busy-redial is added!).A couple of lines are deleted from the "readOnMove" and "logOff2" handlers, but it is unlikely that these will interfere with changes you may have made.Again, I reget any inconvenience you may have experienced as a result of this change.  I'm working on file transfers and will keep you posted in Category 26 (480;1).  Keep on communicat'n!  --Paul CollinsPortions of this stack are used with permissionfrom the book "Cooking with HyperTalk 2.0",copyright 1990 by Dan Winkler and Scott Knaster.</span></text>
  143.     </content>
  144.     <content>
  145.         <layer>card</layer>
  146.         <id>4</id>
  147.         <text><span class="style2">n logOn2 --1.26e  global welcome,pageNow,erroid,RT,topsWeRead,timeOut, hyperDebugIt,¬¨  RTCommand,servantName,lookFor,miscOS,bufferPtr,xExtrChr,servantMode,OSBill  --assumes we're now on main settings card in Stuff stack  put "session start" into pageNow  put empty into topsWeRead  put cd fld "connectTime" of card "Tech 1" into connectTime  go to card "Settings"  put "online" into servantMode  put doSerialPrep2() into modemConfig  put char 1 of item 9 of modemConfig & " " into dialMode  get cd fld id 2  put line five of it into line two of miscOS  put line four of it into prepForModem  put line 8 of it into netType  put netType into line 4 of miscOs  if line one of it is empty then    answer "Please put in GEnie's phone number, your account number," &¬¨    " and a password on the Settings card." with "OK"    dumpOut  --end  end if  put readChar(1,1) into modemTest  put empty into xExtrChr  writeComm line 2 of modemConfig & return  wait 1 sec  put "ATV1E" into myConfig  if item 2 of modemCOnfig > 9500 then put "W2" after myConfig  if line 11 of miscOs is "DTR" then put "&D2" after myConfig  writeComm myConfig & return  --verbose,noEcho  put readComm("OK",5) into modemTest  if erroid is not empty then    answer "I can't communicate with your modem. Please check the modem,"¬¨    & " cable, baud rate, and modem settings."    dumpOut  end if  wait 1 sec  writeComm prepForModem & return  wait 1 sec  put word 1 of line 6 of it into line five of miscOS  put line one of it into dialingNum  put "Dialing GEnie at " & dialingNum  put 1 into tryCount  repeat    add 1 to tryCount    writeComm "ATD" & dialMode & dialingNum & return    get eck(True)    wait 1 sec    put "onLine" into line one of servantMode    put empty into xExtrChr    put readChar(2,1) into modemTest    put empty into xExtrChr    get readComm(return,connectTime)    put readComm(return,5) after it    put eck(False) into dumy    if "CONNECT" is in it then      exit repeat    else if "BUSY" is not in it then      put "Failure to connect (" & it & ")" into erroid      get eCk()    end if    put "The number I dialed is busy--will retry. (Click to cancel)"    repeat for 20      if the mouseClick then        put "Couldn't connect due to busy signal." into erroid        get eCk()      end if      wait 9 --1/6 sec.    end repeat    put "Redialing GEnie at " & dialingNum & ".  Attempt #" & tryCount & " (Click to cancel)"  end repeat  put word 2 of it into baudRate  put "Connected--logging on. Press command-period to cancel session"  put empty into welcome  wait 1 sec  if netType = "GEnie " then    if baudRate <> 9600 then      put "..." after msg      repeat for 3        wait 30        writeComm "h",5      end repeat    end if  else if netType = "Sprint" then    if baudRate < 2400 then      writeComm return,5      wait 60    else writeComm "@",5    wait 1 sec    writeComm "H" & return,5    put readComm("AL=",15) into welcome    if erroid is empty then      writeComm "D1" & return,5      put readComm("@",15) after welcome      writeComm "C GENIE" & return,15    end if  else if netType = "Datex " then    writeComm "." & return,5    put readComm("P:",4) into welcome    writeComm "SET 2:0,5:1,12:1" & return,5    put readComm(return,4) into welcome    writeComm "R 45221040880" & return,5  end if  if erroid is empty then    put readComm("¬£Œ©",20) after welcome  end if  if erroid is not empty then    answer "There was an error right after we connected."¬¨    & " Try dialing again, or using a different access phone number. "¬¨    & "Text received: " & welcome    get eCk(true)  end if  if line 9 of miscOS then get ",100;4"  else get empty  get line two of cd fld "UserData" & "," & cd fld "coverUp" & it & ",!API ON" & return  wait 1 sec -- needed in some cases  writeComm it,15  put empty into welcome  get empty  repeat    put readChar(7,timeOut) after it    if numtochar(2) is in it then exit repeat    if "VAL" is in it or "INC" is in it    then put "Invalid Account or Password (Re-enter on Main Settings)" into erroid    if erroid = "timeOut" then put "Can't log on (" & it & logPak & ")" into erroid    get eck()  end repeat  delete char 1 to offset(numtoChar(2),it) of it  put it & readfild(timeOut,"PCont") into logPak  repeat    get eck()    repeat while chartoNum(char 1 of logPak) < 48      delete char 1 of logPak    end repeat    get fild(logPak,1) --FS    if it is "500004" then      beep 2      go to last card of stack servantName      put "<<<" & fild(logPak,2) & ">>>" & return before fld "text"      set textStyle of line one of fld "text" to "bold"      closeComm      hide msg      exit to hyperCard    else if it is "500001" then exit repeat    put readfild(timeOut,"P") into logPak  end repeat  put "Successfully logged on. Starting online session."  get fild(logPak,2) & "," & fild(logPak,3)  put " Logon: " & conDate(it) & return after myMess  get fild(logPak,4) & "," & fild(logPak,5)  put "Last on: " &  conDate(it) & return after myMess  get fild(logPak,6)  put "off,9999999999,0," & line 1 of cd fld "GERates" into OSBill  if it > 0 then    put "$ PRIME TIME $" & return after myMess    put line 2 of cd fld "GERates" into item 4 of OSBill  end if  get fild(logPak,7) -- last field  put the ticks into endTick  if it > 0 then    put "@" into char one of myMess    put "GEnie has " & it & " mail message(s) waiting for you." & return after myMess  else put "No mail waiting." & return after myMess  put myMess into welcome  if line 9 of miscOS then    repeat      get readfild(timeOut,"P")      if eCk() then exit logOn2      if fild(it,1) is "500003" then exit repeat    end repeat    put welBanner() after welcome  end if  repeat    get readfild(timeOut,"P") --  "110000/110005"    put eCk() into dumy    if fild(it,1) is in "110005 110000" then exit repeat  end repeat  put "M" & return into topsWeReadend logOn2</span></text>
  148.     </content>
  149.     <content>
  150.         <layer>card</layer>
  151.         <id>5</id>
  152.         <text>  put word 1 of it & "," & myBaud into item 1 to 2 of cd fld "modemConfig"  send "mouseUp" && quote & cd fld "modemConfig" & quote to cd btn "Default Modem Settings"</text>
  153.     </content>
  154.     <name></name>
  155.     <script>function  reWrite3 tScriptget whichline("y = 3",tScript,0)if it = 0  then return emptyif "P1.25a" is in tScript then return tScriptput "put true into line 12 of miscOs --P1.25a" & return before line it of tScriptput return & "& " & quote & ")." & quote & " after fld " & quote & "Text" & quote & ¬¨" of card startingCard" & return  & "end if" after line it + 16 of tScriptput return & "put return & " & quote & "No messages found (pg " & quote & ¬¨" & item 1 of pageNow ¬¨" after line it + 16 of tScriptput return & "if line 12 of miscOs is true then"   ¬¨after line it + 16 of tScriptreturn tScriptend reWrite3</script>
  156. </card>
  157.  
  158.  
  159.